define(function (require) {
    var app = require('app');
	//配置路由
    app.config(function ($stateProvider, $urlRouterProvider) {
        
        $stateProvider.state('security_user',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/user/user.html',
                    controllerUrl:  'module/security/user/user',
                    controller:     'userCtrl'
                }
            }
        });

        $stateProvider.state('security_role',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/role/role.html',
                    controllerUrl:  'module/security/role/role',
                    controller:     'roleCtrl'
                }
            }
        });
        
        $stateProvider.state('security_useredit',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/useredit/useredit.html',
                    controllerUrl:  'module/security/useredit/useredit',
                    controller:     'usereditCtrl'
                }
            }
        });
        
         $stateProvider.state('security_usereditapp',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/useredit/usereditapp.html',
                    controllerUrl:  'module/security/useredit/useredit',
                    controller:     'usereditCtrl'
                }
            }
        });
        
        $stateProvider.state('security_roleentrust',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/role/roleentrust.html'
                }
            }
        });

        $stateProvider.state('security_organization',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/organize/organization.html'
                }
            }
        });
        
        $stateProvider.state('security_administrative',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/organize/administrative.html'
                }
            }
        });

         $stateProvider.state('security_department',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/department.html',
                    controllerUrl:  'module/security/organize/department',
                    controller:     'depCtrl'
                }
            }
        });

         $stateProvider.state('security_operatingPost',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/operatingPost.html',
                    controllerUrl:  'module/security/organize/operatingPost',
                    controller:     'operatingPostCtrl'
                }
            }
        });

         $stateProvider.state('security_position',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/position.html',
                    controllerUrl:  'module/security/organize/position',
                    controller:     'positionCtrl'
                }
            }
        });

         $stateProvider.state('security_workingGroup',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/workingGroup.html',
                    controllerUrl:  'module/security/organize/workingGroup',
                    controller:     'workingGroupCtrl'
                }
            }
        });

        $stateProvider.state('security_menujurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/menu.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_datajurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/data.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_mapextentjurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/mapextent.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_maplayerjurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/jurisdiction/maplayer.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });

        $stateProvider.state('security_service',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/jurisdiction/service.html',
                    controllerUrl:  'module/security/jurisdiction/service',
                    controller:     'serviceCtrl'
                }
            }
        });

        $stateProvider.state('signin_logging',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/log/signin_logging.html'
                }
            }
        });

        $stateProvider.state('visit_logging',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/log/visit_logging.html'
                }
            }
        });

        $stateProvider.state('cms_document',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/cms/content/document.html',
                    controllerUrl:  'module/cms/content/document',
                    controller:     'documentCtrl'
                }
            }
        });
        
       /* $stateProvider.state('cms_reviews',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/cms/content/reviews.html',
                    controllerUrl:  'module/cms/content/reviews',
                    controller:     'reviewsCtrl'
                }
            }
        });
*/
        $stateProvider.state('cms_column',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/cms/content/column.html'
                }
            }
        });

        $stateProvider.state('cms_subject',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/cms/content/subject.html',
                    controllerUrl:  'module/cms/content/subject',
                    controller:     'subjectCtrl'
                }
            }
        });

        $stateProvider.state('cms_messageBoard',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 	'module/cms/message/messageBoard.html',
                    controllerUrl:  'module/cms/message/messageBoard',
                    controller:     'messageBoardCtrl'
                }
            }
        });

        $stateProvider.state('cms_messageClass',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/cms/message/messageClass.html'
                }
            }
        });

        $stateProvider.state('cms_sensitive',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/cms/module/sensitive.html'
                }
            }
        });

        $stateProvider.state('cms_link',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/cms/module/link.html',
                    controllerUrl:  'module/cms/module/link',
                    controller:     'linkCtrl'
                }
            }
        });

        $stateProvider.state('cms_site',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/cms/module/site.html'
                }
            }
        });

        $stateProvider.state('knowledge',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/knowledge/content/knowledge.html'
                }
            }
        });

        $stateProvider.state('knowledge_interlocution',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/knowledge/content/interlocution.html'
                }
            }
        });

        $stateProvider.state('knowledge_site',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/knowledge/config/site.html'
                }
            }
        });

        $stateProvider.state('knowledge_label',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/knowledge/config/label.html'
                }
            }
        });

        $stateProvider.state('knowledge_catalog',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/knowledge/config/catalog.html'
                }
            }
        });

        $stateProvider.state('form_dic',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/dictionarys/dictionarys.html',
                    controllerUrl:  'module/form/dictionarys/dictionarys',
                    controller:     'dictionarysCtrl'
                }
            }
        });

        $stateProvider.state('form_metadata',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/metadata/metadata.html',
                    controllerUrl:  'module/form/metadata/metadata',
                    controller:     'metadataCtrl'
                }
            }
        });

        $stateProvider.state('form_metadata_name',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/metadata/metadataname.html'
                }
            }
        });

        $stateProvider.state('gis_layerconfig',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/layerconfig/layerconfig.html'
                }
            }
        });
        
        $stateProvider.state('gis_analysisconfig',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/analysisconfig/analysisconfig.html',
                    controllerUrl:'module/gis/analysisconfig/analysisconfig',
                    controller: 'analysisConfigCtrl'
                }
            }
        });
        
        $stateProvider.state('analysis_gps',{
            views: {
                'model': {
                    templateUrl: 'module/gis/analysis/gps.html',
                    controllerUrl:  'module/gis/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_cad',{
            views: {
                'model': {
                    templateUrl: 'module/gis/analysis/cad.html',
                    controllerUrl:  'module/gis/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_select',{
            views: {
                'model': {
                    templateUrl: 'module/gis/analysis/select.html',
                    controllerUrl:  'module/gis/analysis/analysis',
                    controller:'analysis_Ctrl'
                    
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_draw',{
            views: {
                'model': {
                    templateUrl: 'module/gis/analysis/draw.html',
                    controllerUrl:  'module/gis/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
         $stateProvider.state('analysis_shape',{
            views: {
                'model': {
                    templateUrl: 'module/gis/analysis/shape.html',
                    controllerUrl:  'module/gis/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('gis_mapconfig',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/mapconfig/mapconfig.html'
                }
            }
        });

        $stateProvider.state('arcgis_attribute',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/attribute.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_space',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/space.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_find',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/find.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_identify',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/identify.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_book',{
            views: {
                'model': {
                    templateUrl:    'module/arcgis/locator/book.html',
                    controllerUrl:  'module/arcgis/locator/book',
                    controller:     'bookCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_coordinate',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/locator/coordinate.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('report_ldt',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/report/ldt.html',
                    controllerUrl:  'module/report/report',
                    controller:     'reportCtrl'
                }
            }
        });

        $stateProvider.state('report_map',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/report/map.html',
                    controllerUrl:  'module/report/report',
                    controller:     'reportCtrl'
                }
            }
        });

        $stateProvider.state('report_pt',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/report/pt.html',
                    controllerUrl:  'module/report/report',
                    controller:     'reportCtrl'
                }
            }
        });

        $stateProvider.state('report_ybp',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/report/ybp.html',
                    controllerUrl:  'module/report/report',
                    controller:     'reportCtrl'
                }
            }
        });

        $stateProvider.state('report_zxt',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/report/zxt.html',
                    controllerUrl:  'module/report/report',
                    controller:     'reportCtrl'
                }
            }
        });

        $stateProvider.state('report_zzt',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/report/zzt.html',
                    controllerUrl:  'module/report/report',
                    controller:     'reportCtrl'
                }
            }
        });

        $stateProvider.state('print_excel',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/print/excel.html',
                    controllerUrl:  'module/print/print',
                    controller:     'printCtrl'
                }
            }
        });

        $stateProvider.state('print_word',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/print/word.html',
                    controllerUrl:  'module/print/print',
                    controller:     'printCtrl'
                }
            }
        });

        $stateProvider.state('print_model',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/print/model.html',
                    controllerUrl:  'module/print/print',
                    controller:     'printCtrl'
                }
            }
        });

        $stateProvider.state('file_upordown',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/file/upordown.html',
                    controllerUrl:  'module/file/file',
                    controller:     'fileCtrl'
                }
            }
        });

        $stateProvider.state('form_demo_edit',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/form/demo/edit.html',
                    controllerUrl:  'module/form/demo/edit',
                    controller:     'editCtrl'
                }
            }
        });

        $stateProvider.state('bpm_definition',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/bpm/definition/definition.html',
                    controllerUrl:  'module/bpm/definition/definition',
                    controller:     'bpm_definitonCtrl'
                }
            }
        });

        $stateProvider.state('bpm_rcbg',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/bpm/rcbg/rcbg.html',
                    controllerUrl:  'module/bpm/rcbg/rcbg',
                    controller:     'bpm_rcbgCtrl'
                }
            }
        });

        $stateProvider.state('bpm_simpleDemo',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/bpm/demo/simpleDemo.html',
                    controllerUrl:  'module/bpm/demo/simpleDemo',
                    controller:     'bpm_simpleDemoCtrl'
                }
            }
        });
        
        $stateProvider.state('gis_import',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/dataimport/gis_import.html',
                    controllerUrl:  'module/gis/dataimport/gis_import',
                    controller:     'gis_importCtrl'
                }
            }
        });
    })
});